<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:rss="http://purl.org/rss/1.0/"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  exclude-result-prefixes="rdf rss dc">

  <xsl:template match="/">
    <xsl:apply-templates select="rss"/>
  </xsl:template>

  <xsl:template match="rss">
    <html xml:lang="ja" lang="ja">
      <head>
        <title><xsl:value-of select="channel/title"/> [RSS Feed]</title>
        <style type="text/css">
          a  {text-decoration:none;font-weight:bold;}
          ul {margin-left:1.5em}
          li {margin-bottom:0.5em; list-style-type : square;}
          hr {color: #dddddd; height: 3px;}
          div.discription {margin-left:3em;margin-right:5em;border: 1px dotted gray;padding:5px;font-size:80%;}
        </style>
      </head>
      <body>
        <h1><a href="{channel/link}"><xsl:value-of select="channel/title"/></a> [RSS Feed]</h1>
        <xsl:value-of select="channel/description"/>
        <hr/>
        <ul><xsl:apply-templates select="channel/item"/></ul>
        <hr/>
        <a href="{channel/link}"><xsl:value-of select="channel/title"/></a>
      </body>
    </html>
  </xsl:template>

  <xsl:template match="channel/item">
    <li><a href="{link}"><xsl:value-of select="title"/></a><small> (<xsl:value-of select="pubDate"/>)</small>
    <div class="discription"><xsl:value-of select="description"/></div>
    </li>
  </xsl:template>

</xsl:stylesheet>
